package com.crash;

public class ChrashDemo implements Thread.UncaughtExceptionHandler {
	public ChrashDemo() {
		Thread.setDefaultUncaughtExceptionHandler(ChrashDemo.this);
	}

	@Override
	public void uncaughtException(Thread t, Throwable e) {
		System.err.println(e.toString());

	}

	public void crashOpNull(String content) {
		int len = content.length();

	}
	public void crashOpDeliver(int num) {
		int len = 1/num;

	}
}
